package com.sunda.spmswms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 仓库信息表
 * </p>
 *
 * @author Wayne
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WHS")
@ApiModel(value="Whs对象", description="仓库信息表")
public class Whs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工厂代码（和仓储地点代码 一起确定唯一性）")
    @TableField("WERKS")
    private String werks;

    @ApiModelProperty(value = "仓储地点代码")
    @TableField("WHS_LOCATION_CODE")
    private String whsLocationCode;

    @ApiModelProperty(value = "仓储地点描述")
    @TableField("WHS_LOCATION_DESC")
    private String whsLocationDesc;

    @ApiModelProperty(value = "仓储类型（新建自定义字段（贸易仓A、备件仓B、复合仓C））")
    @TableField("WHS_TYPE")
    private String whsType;

    @ApiModelProperty(value = "联系人")
    @TableField("CONTACT")
    private String userId;

    @ApiModelProperty(value = "地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "电话")
    @TableField("TELEPHONE")
    private String telephone;

    @ApiModelProperty(value = "城市")
    @TableField("CITY")
    private String city;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getWerks() {
        return werks;
    }

    public void setWerks(String werks) {
        this.werks = werks;
    }

    public String getWhsLocationCode() {
        return whsLocationCode;
    }

    public void setWhsLocationCode(String whsLocationCode) {
        this.whsLocationCode = whsLocationCode;
    }

    public String getWhsLocationDesc() {
        return whsLocationDesc;
    }

    public void setWhsLocationDesc(String whsLocationDesc) {
        this.whsLocationDesc = whsLocationDesc;
    }

    public String getWhsType() {
        return whsType;
    }

    public void setWhsType(String whsType) {
        this.whsType = whsType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }


    @Override
    public String toString() {
        return "Whs{" +
                ", werks='" + werks + '\'' +
                ", whsLocationCode='" + whsLocationCode + '\'' +
                ", whsLocationDesc='" + whsLocationDesc + '\'' +
                ", whsType='" + whsType + '\'' +
                ", userId='" + userId + '\'' +
                ", address='" + address + '\'' +
                ", telephone='" + telephone + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
